package com.blockmeta.bbs.businesslibrary.pojo;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class UserPhonePOJO implements Parcelable {

    @SerializedName("date")
    public String date;
    @SerializedName("email")
    public String email;
    @SerializedName("logo")
    public String logo;
    @SerializedName("mobile")
    public String mobile;
    @SerializedName("uid")
    public Integer uid;
    @SerializedName("user_name")
    public String userName;
    @SerializedName("nick_name")
    public String nickName;
    @SerializedName("individual_resume")
    public String individual_resume;
    @SerializedName("status")
    public String status;
    @SerializedName("token")
    private String token;

    public UserPhonePOJO() {
    }

    public UserPhonePOJO(Parcel in) {
        date = in.readString();
        email = in.readString();
        logo = in.readString();
        mobile = in.readString();
        if (in.readByte() == 0) {
            uid = null;
        } else {
            uid = in.readInt();
        }
        userName = in.readString();
        nickName = in.readString();
        individual_resume = in.readString();
        status = in.readString();
        token = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(date);
        dest.writeString(email);
        dest.writeString(logo);
        dest.writeString(mobile);
        if (uid == null) {
            dest.writeByte((byte) 0);
        } else {
            dest.writeByte((byte) 1);
            dest.writeInt(uid);
        }
        dest.writeString(userName);
        dest.writeString(nickName);
        dest.writeString(individual_resume);
        dest.writeString(status);
        dest.writeString(token);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserPhonePOJO> CREATOR = new Creator<UserPhonePOJO>() {
        @Override
        public UserPhonePOJO createFromParcel(Parcel in) {
            return new UserPhonePOJO(in);
        }

        @Override
        public UserPhonePOJO[] newArray(int size) {
            return new UserPhonePOJO[size];
        }
    };

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getIndividual_resume() {
        return individual_resume;
    }

    public void setIndividual_resume(String individual_resume) {
        this.individual_resume = individual_resume;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}